/**
 *                            License
 * THE WORK (AS DEFINED BELOW) IS PROVIDED UNDER THE TERMS OF THIS  
 * CREATIVE COMMONS PUBLIC LICENSE ("CCPL" OR "LICENSE"). 
 * THE WORK IS PROTECTED BY COPYRIGHT AND/OR OTHER APPLICABLE LAW.  
 * ANY USE OF THE WORK OTHER THAN AS AUTHORIZED UNDER THIS LICENSE OR  
 * COPYRIGHT LAW IS PROHIBITED.
 * 
 * BY EXERCISING ANY RIGHTS TO THE WORK PROVIDED HERE, YOU ACCEPT AND  
 * AGREE TO BE BOUND BY THE TERMS OF THIS LICENSE. TO THE EXTENT THIS LICENSE  
 * MAY BE CONSIDERED TO BE A CONTRACT,
 * THE LICENSOR GRANTS YOU THE RIGHTS CONTAINED 
 * HERE IN CONSIDERATION OF YOUR ACCEPTANCE OF SUCH TERMS AND CONDITIONS.
 * 
 */
package com.gui.manager;

/**
 * Class <code>ManagerControl</code> 服务器管理器控制类别.
 * 
 * @author jrwz
 * @version 2012-5-30下午01:32:06
 * @see com.gui.manager
 * @since JDK1.7
 */
public final class ManagerControl {

    /** 实例. */
    private static ManagerControl instance;

    /**
     * 实例为空时才产生一个.
     * 
     * @return 实例
     */
    public static ManagerControl get() {
        if (instance == null) {
            instance = new ManagerControl();
        }
        return instance;
    }

    /** 聊天频道:一般. */
    private boolean chatNormal = false;
    /** 聊天频道:密语. */
    private boolean chatPassphrase = false;
    /** 聊天频道:全体. */
    private boolean chatWorld = false;
    /** 聊天频道:血盟. */
    private boolean chatClan = false;
    /** 聊天频道:组队. */
    private boolean chatParty = false;
    /** 聊天频道:交易. */
    private boolean chatTrade = false;
    /** 聊天频道:大喊. */
    private boolean chatShout = false;
    /** 聊天频道:组队聊天. */
    private boolean chatPartyChat = false;
    /** 动作. */
    private boolean action = false;
    /** 储存. */
    private boolean save = false;

    /**
     * 服务器管理器控制类别.
     */
    private ManagerControl() {
    }

    /**
     * 是否已经打开 - 动作.
     * 
     * @return 开:true、关:false
     */
    public boolean isAction() {
        return this.action;
    }

    /**
     * 是否已经打开 - 聊天频道:血盟.
     * 
     * @return 开:true、关:false
     */
    public boolean isChatClan() {
        return this.chatClan;
    }

    /**
     * 是否已经打开 - 聊天频道:组队.
     * 
     * @return 开:true、关:false
     */
    public boolean isChatParty() {
        return this.chatParty;
    }

    /**
     * 是否已经打开 - 聊天频道:组队聊天.
     * 
     * @return 开:true、关:false
     */
    public boolean isChatPartyChat() {
        return this.chatPartyChat;
    }

    /**
     * 是否已经打开 - 聊天频道:大喊.
     * 
     * @return 开:true、关:false
     */
    public boolean isChatShout() {
        return this.chatShout;
    }

    /**
     * 是否已经打开 - 聊天频道:交易.
     * 
     * @return 开:true、关:false
     */
    public boolean isChatTrade() {
        return this.chatTrade;
    }

    /**
     * 是否已经打开 - 聊天频道:全体.
     * 
     * @return 开:true、关:false
     */
    public boolean isChatWorld() {
        return this.chatWorld;
    }

    /**
     * 是否已经打开 - 聊天频道:一般.
     * 
     * @return 开:true、关:false
     */
    public boolean isNormal() {
        return this.chatNormal;
    }

    /**
     * 是否已经打开 - 聊天频道:密语.
     * 
     * @return 开:true、关:false
     */
    public boolean isPassphrase() {
        return this.chatPassphrase;
    }

    /**
     * 是否已经打开 - 储存.
     * 
     * @return 开:true、关:false
     */
    public boolean isSave() {
        return this.save;
    }

    /**
     * 设置开关 - 动作.
     * 
     * @param flag
     *            开:true、关:false
     */
    public void setAction(final boolean flag) {
        this.action = flag;
    }

    /**
     * 设置开关 - 聊天频道:血盟.
     * 
     * @param flag
     *            开:true、关:false
     */
    public void setChatClan(final boolean flag) {
        this.chatClan = flag;
    }

    /**
     * 设置开关 - 聊天频道:组队.
     * 
     * @param flag
     *            开:true、关:false
     */
    public void setChatParty(final boolean flag) {
        this.chatParty = flag;
    }

    /**
     * 设置开关 - 聊天频道:组队聊天.
     * 
     * @param flag
     *            开:true、关:false
     */
    public void setChatPartyChat(final boolean flag) {
        this.chatPartyChat = flag;
    }

    /**
     * 设置开关 - 聊天频道:大喊.
     * 
     * @param flag
     *            开:true、关:false
     */
    public void setChatShout(final boolean flag) {
        this.chatShout = flag;
    }

    /**
     * 设置开关 - 聊天频道:交易.
     * 
     * @param flag
     *            开:true、关:false
     */
    public void setChatTrade(final boolean flag) {
        this.chatTrade = flag;
    }

    /**
     * 设置开关 - 聊天频道:全体.
     * 
     * @param flag
     *            开:true、关:false
     */
    public void setChatWorld(final boolean flag) {
        this.chatWorld = flag;
    }

    /**
     * 设置开关 - 聊天频道:一般.
     * 
     * @param flag
     *            开:true、关:false
     */
    public void setNormal(final boolean flag) {
        this.chatNormal = flag;
    }

    /**
     * 设置开关 - 聊天频道:密语.
     * 
     * @param flag
     *            开:true、关:false
     */
    public void setPassphrase(final boolean flag) {
        this.chatPassphrase = flag;
    }

    /**
     * 设置开关 - 储存.
     * 
     * @param flag
     *            开:true、关:false
     */
    public void setSave(final boolean flag) {
        this.save = flag;
    }
}
